package com.family.gmall.common.retryer;

/**
 * @Auther: family
 * @Date: 2023/7/20 16:24
 * @Description:
 */

import feign.RetryableException;
import feign.Retryer;

/**
 * 线上环境不使用重试
 * 保证幂等性
 */
public class NeverRetryer implements Retryer {
    @Override
    public void continueOrPropagate(RetryableException e) {
        throw e;
    }

    @Override
    public Retryer clone() {
        return new NeverRetryer();
    }
}
